# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: David Demelier <markand@malikania.fr>
pkgname=libretro-nestopia
pkgver=1.49_git20200510
pkgrel=0
_commit="357e1463a01fe2ca0dd91941aacaaa9944f95e4d"
arch="all"
url="https://github.com/libretro/nestopia"
pkgdesc="Nintendo Entertainment System core for libretro"
license="GPL-2.0-or-later"
source="$pkgname-$_commit.tar.gz::https://github.com/libretro/nestopia/archive/$_commit.tar.gz"
builddir="$srcdir/nestopia-$_commit"
options="!check" # No tests

build() {
	cd libretro
	make
}

package() {
	cd libretro
	install -Dm644 nestopia_libretro.so "$pkgdir"/usr/lib/libretro/nestopia_libretro.so
}

sha512sums="c1ebd1c5c699a142904834ecdbc2030ed526545ed835bd12ec54ccab6ed75f6a824804410e7d088b987af719dcba5eada688868da20b7f5f314a700d1ec54151  libretro-nestopia-357e1463a01fe2ca0dd91941aacaaa9944f95e4d.tar.gz"
